package com.mxpio.erp.equipment.service.impl;

import com.mxpio.erp.common.equipment.entity.VEquipmentEqp;
import com.mxpio.erp.common.equipment.service.VEquipmentEqpService;
import com.mxpioframework.jpa.JpaUtil;
import com.mxpioframework.jpa.query.Criteria;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 设备视图Service业务层处理
 *
 * @author Cheng
 * @date 2023-07-14
 */
@Service
public class VEquipmentEqpServiceImpl implements VEquipmentEqpService {

    @Override
    @Transactional(readOnly = true)
    public Page<VEquipmentEqp> listPage(Pageable pageAble, Criteria c) {
        return JpaUtil.linq(VEquipmentEqp.class).where(c).paging(pageAble);
    }
}
